<div class="sidebar" id="sidebar">
	<input type="hidden" id="menu" value="<?php if(!empty($menu)) echo $menu ;?>">
	<input type="hidden" id="option" value="<?php if(!empty($option)) echo $option; ?>">
	<script type="text/javascript">
		try {
			ace.settings.check('sidebar', 'fixed')
		} catch (e) {}
	</script>

	<!-- <div class="sidebar-shortcuts" id="sidebar-shortcuts">
					<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large" style="">
					</div>

					<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini" style="">
					</div>
				</div> -->
	<!-- #sidebar-shortcuts -->

	<ul class="nav nav-list">
		<li id="home">
			<a href="/home">
				<i class="icon-home"></i>
				<span class="menu-text"> 首页 </span>
			</a>
		</li>
		<li id="shop">
			<a href="#" class="dropdown-toggle">
				<i class="icon-desktop"></i>
				<span class="menu-text"> 店铺管理 </span>
				<b class="arrow icon-angle-down"></b>
			</a>
			<ul class="submenu">
				<li id="shoplist">
					<a href="/shop/shop_list">
						<i class="icon-double-angle-right"></i> 店铺列表
					</a>
				</li>
				<?php if($this->session->userdata('utype')==1){ ?>
				<li id="shopadd">
					<a href="/shop/shop_add">
						<i class="icon-double-angle-right"></i> 添加店铺
					</a>
				</li>
				<?php }else{ ?>
				<li id="my_callback">
					<a href="/shop/my_callback">
						<i class="icon-double-angle-right"></i> 店铺回访
					</a>
				</li>
				<?php } ?>
			</ul>
		</li>
		<?php if($this->session->userdata('utype')==1){ ?>
		<li id="employee">
			<a href="#" class="dropdown-toggle">
				<i class="icon-group"></i>
				<span class="menu-text"> 员工管理 </span>
				<b class="arrow icon-angle-down"></b>
			</a>
			<ul class="submenu">
				<li id="employeelist">
					<a href="/employee/employee_list">
						<i class="icon-double-angle-right"></i> 员工列表
					</a>
				</li>
				<li id="employeeadd">
					<a href="/employee/employee_add">
						<i class="icon-double-angle-right"></i> 添加员工
					</a>
				</li>
				<li id="summarylist">
					<a href="/summary/summarylist">
						<i class="icon-double-angle-right"></i> 员工总结
					</a>
				</li>
				<li id="admin_summary_add">
					<a href="/summary/admin_summary_add">
						<i class="icon-double-angle-right"></i> 添加总结
					</a>
				</li>
			</ul>
		</li>
		<?php }else{ ?>
		<li id="summary">
			<a href="#" class="dropdown-toggle">
				<i class="icon-edit"></i>
				<span class="menu-text"> 总结管理 </span>
				<b class="arrow icon-angle-down"></b>
			</a>
			<ul class="submenu">
				<!-- <li id="index">
					<a href="/summary">
						<i class="icon-double-angle-right"></i> 我的总结
					</a>
				</li> -->
				<li id="summary_add">
					<a href="/summary/summary_add">
						<i class="icon-double-angle-right"></i> 添加总结
					</a>
				</li>
				<li id="summary_mylist">
					<a href="/summary/summary_mylist">
						<i class="icon-double-angle-right"></i> 我的总结
					</a>
				</li>
			</ul>
		</li>
		<?php } ?>
		<?php if($this->session->userdata('utype')==1){ ?>
		<li id="brand">
			<a href="/brand">
				<i class="icon-bar-chart"></i>
				<span class="menu-text"> 品牌管理 </span>
			</a>
		</li>
		<?php } ?>
		<li id="terminal">
			<a href="#" class="dropdown-toggle">
				<i class="icon-comments"></i>
				<span class="menu-text"> 终端管理 </span>
				<b class="arrow icon-angle-down"></b>
			</a>
			<ul class="submenu">
				<li id="terminallist">
					<a href="/terminal/terminallist">
						<i class="icon-double-angle-right"></i> 终端列表
					</a>
				</li>
		<?php if($this->session->userdata('utype')==1){ ?>
				<li id="terminaladd">
					<a href="/terminal/terminaladd">
						<i class="icon-double-angle-right"></i> 添加终端
					</a>
				</li>
		<?php }else{ ?>
				<li id="terminalcallbacklist">
					<a href="/terminal/terminalcallbacklist">
						<i class="icon-double-angle-right"></i> 我的回访
					</a>
				</li>
		<?php } ?>
			</ul>
		</li>
	</ul>
	<div class="sidebar-collapse" id="sidebar-collapse">
		<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
	</div>
	<script type="text/javascript">
		try {
			ace.settings.check('sidebar', 'collapsed')
		} catch (e) {}
	</script>
</div>
